<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>兑奖页面</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.min.css">
    <link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm-extend.min.css">

</head>
<body>
<div class="page-group">
    <div class="page">
        <!-- 标题栏 -->
        <header class="bar bar-nav">
            <a class="icon icon-left pull-left back"></a>
            <h1 class="title">标题</h1>
        </header>
        <div class="content">
            {if condition="empty($list)"}
            <div class="content-block">
                <div class="list-block">
                    <p><a href="#" class="button button-big ">没有中奖</a></p>
                </div>
            </div>
            {else/}
            <div class="content-block">
                {foreach name="list" id="record"}
                <div class="list-block">
                    <ul>
                        <!-- Text inputs -->
                        <li>
                            <div class="item-content">
                                <div class="item-inner">
                                    <div class="item-title label">兑换码</div>
                                    <div class="item-input">
                                        {$record.reward_code}
                                    </div>
                                </div>
                            </div>
                        </li>
                        <li>
                            <div class="item-content">
                                <div class="item-inner">
                                    <div class="item-title label">奖品名</div>
                                    <div class="item-input">
                                        {$record.reward.name}
                                    </div>
                                </div>
                            </div>
                        </li>
                        <li>
                            <div class="item-content">
                                <div class="item-inner">
                                    <div class="item-title label">领奖地址</div>
                                    <div class="item-input">
                                        {if condition="$record.reward.reward_cate == 1"}
                                        {$record.reward.receive_address}
                                        {else/}
                                        无
                                        {/if}
                                    </div>
                                </div>
                            </div>
                        </li>
                        <li>
                            <div class="item-content">
                                <div class="item-inner">
                                    <div class="item-title label">领取状态</div>
                                    <div class="item-input">
                                        {if condition="$record.is_receive == 1"}
                                        已领取
                                        {else/}
                                        未领取
                                        {/if}
                                    </div>
                                </div>
                            </div>
                        </li>
                    </ul>
                </div>
                {/foreach}
            </div>
            {/if}
        </div>
    </div>
</div>
<script type='text/javascript' src='http://g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
<script type='text/javascript' src='http://g.alicdn.com/msui/sm/0.6.2/js/sm.min.js' charset='utf-8'></script>
<script type='text/javascript' src='http://g.alicdn.com/msui/sm/0.6.2/js/sm-extend.min.js' charset='utf-8'></script>
<script type='text/javascript'>
    $.init();
</script>
</body>
</html>